home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / pipnss / nsICertPickDialogs.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  101 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsICertPickDialogs.idl
  3.  */
  4.  
  5. #ifndef __gen_nsICertPickDialogs_h__
  6. #define __gen_nsICertPickDialogs_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIInterfaceRequestor; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsICertPickDialogs */
  21. #define NS_ICERTPICKDIALOGS_IID_STR "51d59b08-1dd2-11b2-ad4a-a51b92f8a184"
  22.  
  23. #define NS_ICERTPICKDIALOGS_IID \
  24.   {0x51d59b08, 0x1dd2, 0x11b2, \
  25.     { 0xad, 0x4a, 0xa5, 0x1b, 0x92, 0xf8, 0xa1, 0x84 }}
  26.  
  27. /**
  28.  * nsICertPicker
  29.  * Provides generic UI for choosing a certificate
  30.  */
  31. class NS_NO_VTABLE nsICertPickDialogs : public nsISupports {
  32.  public: 
  33.  
  34.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICERTPICKDIALOGS_IID)
  35.  
  36.   /**
  37.    * PickCertificate
  38.    *   General purpose certificate prompter
  39.    */
  40.   /* void PickCertificate (in nsIInterfaceRequestor ctx, [array, size_is (count)] in wstring certNickList, [array, size_is (count)] in wstring certDetailsList, in unsigned long count, inout long selectedIndex, out boolean canceled); */
  41.   NS_IMETHOD PickCertificate(nsIInterfaceRequestor *ctx, const PRUnichar **certNickList, const PRUnichar **certDetailsList, PRUint32 count, PRInt32 *selectedIndex, PRBool *canceled) = 0;
  42.  
  43. };
  44.  
  45. /* Use this macro when declaring classes that implement this interface. */
  46. #define NS_DECL_NSICERTPICKDIALOGS \
  47.   NS_IMETHOD PickCertificate(nsIInterfaceRequestor *ctx, const PRUnichar **certNickList, const PRUnichar **certDetailsList, PRUint32 count, PRInt32 *selectedIndex, PRBool *canceled); 
  48.  
  49. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  50. #define NS_FORWARD_NSICERTPICKDIALOGS(_to) \
  51.   NS_IMETHOD PickCertificate(nsIInterfaceRequestor *ctx, const PRUnichar **certNickList, const PRUnichar **certDetailsList, PRUint32 count, PRInt32 *selectedIndex, PRBool *canceled) { return _to PickCertificate(ctx, certNickList, certDetailsList, count, selectedIndex, canceled); } 
  52.  
  53. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  54. #define NS_FORWARD_SAFE_NSICERTPICKDIALOGS(_to) \
  55.   NS_IMETHOD PickCertificate(nsIInterfaceRequestor *ctx, const PRUnichar **certNickList, const PRUnichar **certDetailsList, PRUint32 count, PRInt32 *selectedIndex, PRBool *canceled) { return !_to ? NS_ERROR_NULL_POINTER : _to->PickCertificate(ctx, certNickList, certDetailsList, count, selectedIndex, canceled); } 
  56.  
  57. #if 0
  58. /* Use the code below as a template for the implementation class for this interface. */
  59.  
  60. /* Header file */
  61. class nsCertPickDialogs : public nsICertPickDialogs
  62. {
  63. public:
  64.   NS_DECL_ISUPPORTS
  65.   NS_DECL_NSICERTPICKDIALOGS
  66.  
  67.   nsCertPickDialogs();
  68.  
  69. private:
  70.   ~nsCertPickDialogs();
  71.  
  72. protected:
  73.   /* additional members */
  74. };
  75.  
  76. /* Implementation file */
  77. NS_IMPL_ISUPPORTS1(nsCertPickDialogs, nsICertPickDialogs)
  78.  
  79. nsCertPickDialogs::nsCertPickDialogs()
  80. {
  81.   /* member initializers and constructor code */
  82. }
  83.  
  84. nsCertPickDialogs::~nsCertPickDialogs()
  85. {
  86.   /* destructor code */
  87. }
  88.  
  89. /* void PickCertificate (in nsIInterfaceRequestor ctx, [array, size_is (count)] in wstring certNickList, [array, size_is (count)] in wstring certDetailsList, in unsigned long count, inout long selectedIndex, out boolean canceled); */
  90. NS_IMETHODIMP nsCertPickDialogs::PickCertificate(nsIInterfaceRequestor *ctx, const PRUnichar **certNickList, const PRUnichar **certDetailsList, PRUint32 count, PRInt32 *selectedIndex, PRBool *canceled)
  91. {
  92.     return NS_ERROR_NOT_IMPLEMENTED;
  93. }
  94.  
  95. /* End of implementation class template. */
  96. #endif
  97.  
  98. #define NS_CERTPICKDIALOGS_CONTRACTID "@mozilla.org/nsCertPickDialogs;1"
  99.  
  100. #endif /* __gen_nsICertPickDialogs_h__ */
  101.